import { herinRequist, BASE_URL } from "@/api/http.js";
function addPrototype (Vue) {
	Vue.prototype.$showToast = function(title, icon='none', mask = true, duration = 1500) {
		uni.showToast({
			title: title || '',
			icon: icon,
			mask: mask,
			duration,
		})
	}
	Vue.prototype.$showLoading = function(title, mask = true) {
		uni.showLoading({
			title: title || '',
			mask: mask || true
		})
	}
	Vue.prototype.$http = herinRequist;
	Vue.prototype.$BASE_URL = BASE_URL;
};
export { addPrototype };
